<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery-1.10.1.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div id="workflowContent">
			
		</div>
	</body>
	<script type="text/javascript">
		(function($) {
				$.fn.bindlist = function(options, fu) {
					var p = {
						version: "1.0",
						url: "",
						ulClass: "mui-table-view",
						liClass: "mui-table-view-cell",
						aclass: "mui-navigate-right",
						spanclass: "mui-badge",
						mtype: "GET",
						isModel: false,
						colNum: 1,
						colModels: [],
						beforeRequest: null,
						parameterStr: "",
						listData: null,
						listhtml: null,
						callback: null
					}
					if(options){
						$.extend(true, p, options);
						console.log(JSON.stringify(p))
						p.callback = fu;
						console.log(JSON.stringify(p)) 
					}

				}
		})($)
		$("#workflowContent").bindlist({
						url:"WFBusiness/GetAPIJLJCMeasureDT",
						mtype: "post",
						spanclass: "mui-view-text",
						beforeRequest: {
							"workflowInsId": "1111111111111111111",
							"type": "22222222222222"
						},
						colModels: [{
							name: "itemName",
							index: "itemId",
							islinke: "COLLECT_MERGE",
							linkeUrl: "ImageUrl",
							spanName: "jlTotal",
							islabel: false,
							isShowSpan: true
						}]  
					}, function() {
//						plus.nativeUI.closeWaiting();      
//						$("#workflowContent").find("li").on("tap", function() {
//							if($(this).find("a").length > 0) {
//								var collectId = $(this).attr("id");
//								var titleName = $(this).find("a").text();
//								//查看详情页
//								mui.openWindow({
//									url: "WorkflowDetail.html",
//									id: "WorkflowDetail",
//									extras: {
//										"workflowInsId": viewParameter.workflowInsId,
//										"collectId": collectId,
//										"title": titleName
//									},
//									show: {
//										aniShow: "slide-in-bottom",
//										duration: "200"
//									}
//								});
//							}
//						});
					});
		
	</script>

</html>